<template>
  <tr>
    <td><input type="checkbox" :checked="row.checked" @change="$emit('dealcheck',$event.target.checked)"/></td>
    <td>{{row.name}}</td>
    <td>{{row.price}}</td>
    <td><button @click="$emit('dealnum',row.num+1)">+</button>{{row.num}}
    <button @click="$emit('dealnum',row.num-1)">-</button></td>
    <td>{{row.price*row.num}}</td>
    <td><button @click="$emit('dealdel',row.name)">删除</button></td>
  </tr>
</template>
 
<script>
export default {
  name: "MyCart",
  components: {},
  props: {
    row:{
        type:Object,
        required:true
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>